import $http from '@/assets/js/http' 

//银行卡列表
export function getcardList(userId,lang) {
    return $http.get('/api/bank/list', {
        params:{
            userId:userId,
            lang:lang,
        }
    });
}

//删除银行卡
export function postDelCard(id,lang) {
    return $http.post('/api/bank/delete', {
        id:id,
        lang:lang
    });
}

//新增银行卡
export function postAddCard(userId,bankId,name,bankNumber,lang) {
    return $http.post('/api/bank/add', {
        userId:userId,
        bankId:bankId,
        name:name,
        bankNumber:bankNumber,
        lang:lang
    });
}


//银行卡类型列表
export function getcardTypeList(lang) {
    return $http.get('/api/bank/typeList', {
        params:{
            lang:lang,
        }
    });
}